export const ResultDataCodeMap = {
  200: '请求成功',
  999: '后端错误',
  203: '用户参数错误',
  403: 'token异常'
}


export type ResultData<T = any> = {
  code: keyof (typeof ResultDataCodeMap)

  msg: string

  data: T
}


export interface httpMsgMapObject {
  [key: number]: { title: string, type: httpMsgType }
}

export type httpMsgType = "success" | "warning" | "error" | "info"